package DesignPatern.A20_状态模式.QSB.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/8/6 14:09
 */
public class ConcreteState1 extends State
{
    @Override
    public void handle1()
    {
        System.out.println("handle1");
    }
    
    @Override
    public void handle2()
    {
        System.out.println("22");
        super.context.setCurrentState(Context.STATE2);//设置为状态2
        super.context.handle2();
    }
}
